package chances.epg.entity.content;

import java.util.Date;

import chances.epg.entity.AccessEntity;

/**
 * 编排单
 * @author Elysium
 *
 */
public class CategoryItem extends AccessEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1762388319482473457L;
	/**
	 * 专辑
	 */
	public static final String ITEMTYPE_SUBJECT="subject";
	/**
	 * 专栏
	 */
	public static final String ITEMTYPE_ALBUM="album";
	/**
	 * 单剧集
	 */
	public static final String ITEMTYPE_VOD="vod";
	
	/**
	 * 连续剧
	 */
	public static final String ITEMTYPE_SERIES="series";
	
	/**
	 * 系列剧
	 */
	public static final String ITEMTYPE_SERIES2="series2";
	/**
	 * 回看频道
	 */
	public static final String ITEMTYPE_CHANNEL="channel";
	
	/**
     * 回看节目单
     */
    public static final String ITEMTYPE_SCHEDULE="schedule";
	
	/**
	 * 展示栏目
	 */
	public static final String ITEMTYPE_BIZ = "biz";
	
	/**
	 * 图文
	 */
	public static final String ITEMTYPE_INFO = "information";
	
	/**
     * 外部链接
     */
    public static final String ITEMTYPE_URL = "link";
    
    public static final int TYPE_NORMAL = 1; // 普通
    public static final int TYPE_TOP = 99; // 置顶
	
	private Long id;
	private String categoryCode;
	private String title;
	private String subTitle;
	private String itemIcon;
	private String itemType;
	private String itemCode;
	private int status;
	private int type;//编排类型
	private int showFlag;
	private int itemOrder;
	private Date validTime;
	private Date expireTime;
	private Date createTime;
	
	private String channelCode;
	private Date beginTime;
	private Date endTime;
	
	private String contentIcon;
	private String contentPoster;
	private String contentStill;
	private String contentOpImg1;
    private String contentOpImg2;
    private String contentShowFlag;
    private String contentOpShowFlag;
    private String contentScore;
    private Object source;
    
    private int updateNum; // 更新集数 by shenxw
    private String firstObjTitle; // 多剧集、综艺下，第一集/期节目的标题 by shenxw
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getCategoryCode() {
		return categoryCode;
	}
	public void setCategoryCode(String categoryCode) {
		this.categoryCode = categoryCode;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSubTitle() {
		return subTitle;
	}
	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}
	public String getItemIcon() {
		return itemIcon;
	}
	public void setItemIcon(String itemIcon) {
		this.itemIcon = itemIcon;
	}
	public String getItemType() {
		return itemType;
	}
	public void setItemType(String itemType) {
		this.itemType = itemType;
	}
	public String getItemCode() {
		return itemCode;
	}
	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getItemOrder() {
		return itemOrder;
	}
	public void setItemOrder(int itemOrder) {
		this.itemOrder = itemOrder;
	}
	public Date getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Date getValidTime() {
		return validTime;
	}
	public void setValidTime(Date validTime) {
		this.validTime = validTime;
	}
	public Date getExpireTime() {
		return expireTime;
	}
	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public int getShowFlag() {
		return showFlag;
	}
	public void setShowFlag(int showFlag) {
		this.showFlag = showFlag;
	}
	
	public String getContentIcon() {
		return contentIcon;
	}
	public void setContentIcon(String contentIcon) {
		this.contentIcon = contentIcon;
	}
	public String getContentPoster() {
		return contentPoster;
	}
	public void setContentPoster(String contentPoster) {
		this.contentPoster = contentPoster;
	}
	public String getContentStill() {
		return contentStill;
	}
	public void setContentStill(String contentStill) {
		this.contentStill = contentStill;
	}
	public boolean isVod() {
		return ITEMTYPE_VOD.equals(this.itemType);
	}
	
	public boolean isSeries() {
		return ITEMTYPE_SERIES.equals(this.itemType);
	}
	
	public boolean isSeries2() {
		return ITEMTYPE_SERIES2.equals(this.itemType) ;
	}
	
	public boolean isSubject() {
		return ITEMTYPE_SUBJECT.equals(this.itemType);
	}
	
	public boolean isAlbum() {
		return ITEMTYPE_ALBUM.equals(this.itemType);
	}
	
	public boolean isChannel() {
		return ITEMTYPE_CHANNEL.equals(this.itemType);
	}
	
	public boolean isSchedule() {
        return ITEMTYPE_SCHEDULE.equals(this.itemType);
    }
	
	public boolean isBiz() {
		return ITEMTYPE_BIZ.equals(this.itemType);
	}
	
	public boolean isInfo() {
        return ITEMTYPE_INFO.equals(this.itemType);
    }
	
	public boolean isExternalUrl() {
        return ITEMTYPE_URL.equals(this.itemType);
    }
	
    public boolean isContent() {
        return isVod() || isSeries() || isSubject() || isAlbum() || isChannel()
                || isSchedule() || isInfo() || isExternalUrl() || isSeries2();
    }
    public String getChannelCode() {
        return channelCode;
    }
    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }
	public String getContentOpImg1() {
		return contentOpImg1;
	}
	public void setContentOpImg1(String contentOpImg1) {
		this.contentOpImg1 = contentOpImg1;
	}
	public String getContentOpImg2() {
		return contentOpImg2;
	}
	public void setContentOpImg2(String contentOpImg2) {
		this.contentOpImg2 = contentOpImg2;
	}
	public String getContentShowFlag() {
		return contentShowFlag;
	}
	public void setContentShowFlag(String contentShowFlag) {
		this.contentShowFlag = contentShowFlag;
	}
	public String getContentOpShowFlag() {
		return contentOpShowFlag;
	}
	public Object getSource() {
		return source;
	}
	public void setSource(Object source) {
		this.source = source;
	}
	public void setContentOpShowFlag(String contentOpShowFlag) {
		this.contentOpShowFlag = contentOpShowFlag;
	}
	public String getContentScore() {
		return contentScore;
	}
	public void setContentScore(String contentScore) {
		this.contentScore = contentScore;
	}
	public int getUpdateNum() {
		return updateNum;
	}
	public void setUpdateNum(int updateNum) {
		this.updateNum = updateNum;
	}
	public String getFirstObjTitle() {
		return firstObjTitle;
	}
	public void setFirstObjTitle(String firstObjTitle) {
		this.firstObjTitle = firstObjTitle;
	}
}
